package com.lele.service.impl;


import com.lele.domain.Role;
import com.lele.dao.RoleMapper;
import com.lele.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<Role> getRoleByUsername(String username) {
        return roleMapper.getRoleByUsername(username);
    }
}
